package util;

import org.anddev.andengine.extension.physics.box2d.PhysicsFactory;

import com.badlogic.gdx.physics.box2d.FixtureDef;

public class Constants {
	public static final String DATABASE_NAME = "lunchlist.db";
	public static final int SCHEMA_VERSION = 3;

	public static final String RANK_TABLE_NAME = "ranks";
	public static final String RANK_ID_COLUMN_NAME = "_id";
	public static final String RANK_POINTS_COLUMN_NAME = "points";
	public static final String RANK_USER_COLUMN_NAME = "user";
	
	public static final String RANK_SAVE_ACTIVITY_SCORE_ID = "com.google.monkeyJump.rankScoreId";
	
	public static final int RANK_SIZE_LIMIT = 10;

	
	public static final int CAMERA_WIDTH = 720;
	public static final int CAMERA_HEIGHT = 480;
	public static final float JUMP_PROBABILITY = 0.2f;
	public static final float HUNTER_VELOCITY = 0.2f;
	
	/* The categories. */
	public static final short CATEGORYBIT_WALL = 1;
	public static final short CATEGORYBIT_BOX = 2;
	public static final short CATEGORYBIT_MONKEY = 4;
	public static final short CATEGORYBIT_HUNTER = 8;
	public static final short CATEGORYBIT_LIANA = 16;

	/* And what should collide with what. */
	public static final short MASKBITS_WALL = Constants.CATEGORYBIT_WALL
			+ Constants.CATEGORYBIT_BOX + CATEGORYBIT_MONKEY
			+ CATEGORYBIT_HUNTER;
	public static final short MASKBITS_BOX = Constants.CATEGORYBIT_WALL
			+ Constants.CATEGORYBIT_BOX; // Missing:
	// CATEGORYBIT_CIRCLE
	public static final short MASKBITS_MONKEY = Constants.CATEGORYBIT_WALL
			+ CATEGORYBIT_MONKEY; // Missing: CATEGORYBIT_BOX
	public static final short MASKBITS_HUNTER = Constants.CATEGORYBIT_WALL
			+ CATEGORYBIT_HUNTER; // Missing: CATEGORYBIT_BOX
	
	public static final short MASKBITS_LIANA = CATEGORYBIT_WALL
			+ CATEGORYBIT_LIANA; // Missing: CATEGORYBIT_BOX
	
	public static final FixtureDef WALL_FIXTURE_DEF = PhysicsFactory
			.createFixtureDef(0, 0f, 0f, false, Constants.CATEGORYBIT_WALL,
					MASKBITS_WALL, (short) 0);
	public static final FixtureDef BOX_FIXTURE_DEF = PhysicsFactory
			.createFixtureDef(0, 0f, 0f, false, Constants.CATEGORYBIT_BOX,
					MASKBITS_BOX, (short) 0);
	public static final FixtureDef MONKEY_FIXTURE_DEF = PhysicsFactory
			.createFixtureDef(0, 0f, 0f, false, CATEGORYBIT_MONKEY,
					MASKBITS_MONKEY, (short) 0);
	public static final FixtureDef HUNTER_FIXTURE_DEF = PhysicsFactory
			.createFixtureDef(0, 0f, 0f, false, CATEGORYBIT_HUNTER,
					MASKBITS_HUNTER, (short) 0);
	
	public static final FixtureDef LIANA_FIXTURE_DEF = PhysicsFactory
			.createFixtureDef(0, 0f, 0f, false, CATEGORYBIT_LIANA,
					MASKBITS_LIANA, (short) 0);
}
